package com.cmc.cloud.cmclink.doc.vo.guaranteelettervo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.util.*;
import javax.validation.constraints.*;

import org.hibernate.validator.constraints.Length;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 长期保函 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 *
 * @author codegen
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class GuaranteeLetterBaseVO {

    @Schema(description = "附件类型代码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{GuaranteeLetterBaseVO.attatchTypeCode.NotBlank}")
    @Length(max = 50, message = "{GuaranteeLetterBaseVO.attatchTypeCode.Length}")
    private String attatchTypeCode;

    @Schema(description = "附件类型中文名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{GuaranteeLetterBaseVO.attatchTypeCodeCn.NotBlank}")
    @Length(max = 500, message = "{GuaranteeLetterBaseVO.attatchTypeCodeCn.Length}")
    private String attatchTypeCodeCn;

    @Schema(description = "附件类型英文名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{GuaranteeLetterBaseVO.attatchTypeCodeEn.NotBlank}")
    @Length(max = 500, message = "{GuaranteeLetterBaseVO.attatchTypeCodeEn.Length}")
    private String attatchTypeCodeEn;

    @Schema(description = "订舱人代码")
    @Length(max = 50, message = "{GuaranteeLetterBaseVO.bkpCode.Length}")
    private String bkpCode;

    @Schema(description = "提单发货人")
    @Length(max = 50, message = "{GuaranteeLetterBaseVO.shipperCode.Length}")
    private String shipperCode;

    @Schema(description = "真实发货人")
    @Length(max = 500, message = "{GuaranteeLetterBaseVO.actualShipperCode.Length}")
    private String actualShipperCode;

    @Schema(description = "收货人")
    @Length(max = 50, message = "{GuaranteeLetterBaseVO.consigneeCode.Length}")
    private String consigneeCode;

    @Schema(description = "通知人")
    @Length(max = 50, message = "{GuaranteeLetterBaseVO.notifyPartyCode.Length}")
    private String notifyPartyCode;

    @Schema(description = "接货地")
    @Length(max = 256, message = "{GuaranteeLetterBaseVO.porCodes.Length}")
    private String porCodes;

    @Schema(description = "装货港")
    @Length(max = 256, message = "{GuaranteeLetterBaseVO.polCodes.Length}")
    private String polCodes;

    @Schema(description = "卸货点")
    @Length(max = 256, message = "{GuaranteeLetterBaseVO.podCodes.Length}")
    private String podCodes;

    @Schema(description = "目的地")
    @Length(max = 256, message = "{GuaranteeLetterBaseVO.delCodes.Length}")
    private String delCodes;

    @Schema(description = "hs_code")
    @Length(max = 50, message = "{GuaranteeLetterBaseVO.hsCode.Length}")
    private String hsCode;

    @Schema(description = "开始日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "{GuaranteeLetterBaseVO.beginDate.NotNull}")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date beginDate;

    @Schema(description = "结束日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "{GuaranteeLetterBaseVO.endDate.NotNull}")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endDate;

    @Schema(description = "文件id")
    private String fileId;

}
